#include <freertos/FreeRTOS.h>
#include <freertos/task.h>

#include "flow_led_task.h"
#include "OLED_task.h"
#include "wifi_mqtt_task.h"
#include "debug_task.h"
#include "typedefine.h"

esp32_sta_t sta = {
    .wifi_connected = false,
    .server_connected = false,
    .server_command = "NULL"
};

void setup()
{
    xTaskCreatePinnedToCore(led_task, "led_flow_task", 1024, NULL, 1, NULL, 0);
    xTaskCreatePinnedToCore(OLED_task, "OLED_display_task", 4096, NULL, 1, NULL, 0);
    xTaskCreatePinnedToCore(wifi_mqtt_task, "wifi_mqtt_task", 4096, NULL, 1, NULL, 1);
    xTaskCreatePinnedToCore(debug_task, "debug_task", 4096, NULL, 1, NULL, 0);
}

void loop()
{

}
